package com.pdg.mcplugin.questfor.dataproviders;

import java.io.File;

import com.pdg.mcplugin.common.baseclasses.DataProviderBase;
import com.pdg.mcplugin.questfor.QuestFor;

public class DataProvider extends DataProviderBase<QuestFor>{
	private static final String CONNECTION_STRING = "jdbc:sqlite:%s"+ File.separator + "questfor.db";
	private QuestTableProvider questTableProvider;

	public DataProvider(QuestFor thePlugin) {
		super(thePlugin, CONNECTION_STRING);
	}

	public QuestTableProvider getQuestTableProvider() {
		if(questTableProvider==null){
			questTableProvider = new QuestTableProvider(this);
		}
		return questTableProvider;
	}

}
